home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / qlib205.zip / QLIB.ZIP / SRC / MATH / MATH_BC.ASM < prev    next >
Assembly Source File  |  1997-04-13  |  650b  |  32 lines

  1. ; Math Library to be used in C programs (Borland C 32-bit)
  2.  
  3. ; results are left in the FPU regs
  4.  
  5. include qlib.inc
  6. include math.inc
  7. include string.inc
  8. include errno.inc
  9.  
  10. .data
  11. _math_typ db 0
  12. _BC_ equ 1
  13.  
  14. externdef _turboFloat:DWORD      ;these should be ABS but DLINK
  15. externdef _floatconvert:DWORD    ;can't handle that
  16.  
  17.   ;and these should be equ but DLINK can't handle that...
  18.   _turboFloat dd 80387h  ;for BCC32 v5.0 compatibility
  19.   _floatconvert dd 80387h  ;something else it may need
  20.  
  21. include math_com.asm
  22. include ftoa.asm
  23.  
  24. .code
  25. _ftol proc   ;for BCC32 compiler
  26.   push ebp
  27.   mov ebp,esp
  28.   jmp __ftol
  29. _ftol endp
  30.  
  31. end
  32.